package com.iceberg.boot.autoconfig.framework.mq;

import com.iceberg.boot.autoconfig.framework.mq.component.ConnectionFactory;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConditionalOnProperty(name = "local-config.rabbitmq.init", havingValue = "true")
public class RabbitAutoConfiguration {

    @Bean
    public ConnectionFactory connectionFactory() {
        return new ConnectionFactory();
    }
}
